package io.renren.modules.collect.entity;

import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;


/**
 * 
 * 
 * @author 
 * @email 
 * @date 2018-10-24 18:48:18
 */
public class CollectinfosEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//收藏id
	private String collectinfoid;
	//收藏人
	@NotBlank(message="收藏人不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String userinfoid;
	//信息id
	@NotBlank(message="项目不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String targetid;
	//创建时间
	private Date createtime;

	/**
	 * 设置：收藏id
	 */
	public void setCollectinfoid(String collectinfoid) {
		this.collectinfoid = collectinfoid;
	}
	/**
	 * 获取：收藏id
	 */
	public String getCollectinfoid() {
		return collectinfoid;
	}
	/**
	 * 设置：收藏人
	 */
	public void setUserinfoid(String userinfoid) {
		this.userinfoid = userinfoid;
	}
	/**
	 * 获取：收藏人
	 */
	public String getUserinfoid() {
		return userinfoid;
	}
	/**
	 * 设置：信息id
	 */
	public void setTargetid(String targetid) {
		this.targetid = targetid;
	}
	/**
	 * 获取：信息id
	 */
	public String getTargetid() {
		return targetid;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreatetime() {
		return createtime;
	}
}
